package com.orange.wwwapi.controller.repairProblemCategory;

import com.orange.core.pojo.R;
import com.orange.core.pojo.entity.repairProblemCategory.vo.RepairProblemCategoryVO;
import com.orange.core.service.repairProblemCategory.RepairProblemCategoryService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>ClassName:RepairProblemCategoryController</p>
 * <p>Description: 报修单问题分类表</p>
 * <p>Author: lwm</p>
 * <p>Date: 2025/6/6 22:19</p>
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/repairProblemCategory")
public class RepairProblemCategoryController {

    private final RepairProblemCategoryService repairProblemCategoryService;

    /**
     * 报修单问题分类列表
     * @return
     */
    @GetMapping("/list")
    public R<List<RepairProblemCategoryVO>> list(){
        return R.ok(repairProblemCategoryService.repairProblemCategoryList());
    }


}
